|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectraar.register.RARegister
raar.register.RASetRegister
public class RASetRegister
This class defines a register for which you can only set values that already exist, and which can be copied COMPLETELY to an other register. In RAAR it is used to model process inputs. Once you have set the keys which should be in the register, it locks up and cannot be changed except using the set method for values.
| Field Summary |
|---|
| Fields inherited from class raar.register.RARegister |
|---|
initialObjectVector, nameVector, objectVector |
| Constructor Summary | |
|---|---|
RASetRegister()
Construct a new settable register |
|
RASetRegister(java.util.Vector names,
java.util.Vector values)
Construct a new settable register with names and values. |
|
| Method Summary | |
|---|---|
void |
add(java.lang.String name,
RADataType dt)
Since we may not add any new names, this method will throw an exception. |
void |
clearRegister(RARegister r)
Replace the complete content by null. |
void |
copyToRegister(RARegister r)
Copy the content of this register to the specified register, as far as the names defined in this register exist in the specified one (i.e. it makes no new keys). |
int |
getType(java.lang.String name)
Return the type of the object stored under a name. |
boolean |
nameExists(java.lang.String name)
Returns true if the specified name exists. |
void |
setNames(java.util.Vector names)
Set the names (Strings in Vector) of the keys in this register. |
void |
setValues(java.util.Vector values)
Set the content of the register, which must be as large (ntokens) as the keys. |
| Methods inherited from class raar.register.RARegister |
|---|
accepts, clearRegister, get, getNameVector, getObjectVector, set, set, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RASetRegister()
public RASetRegister(java.util.Vector names,
java.util.Vector values)
throws RAException
RAException| Method Detail |
|---|
public void setNames(java.util.Vector names)
public void setValues(java.util.Vector values)
throws RAException
RAException
public void copyToRegister(RARegister r)
throws RAException
RAException
public boolean nameExists(java.lang.String name)
throws RAException
nameExists in class RARegisterRAException
public void add(java.lang.String name,
RADataType dt)
throws RAException
add in class RARegisterRAException
public int getType(java.lang.String name)
throws RAException
getType in class RARegisterRAException
public void clearRegister(RARegister r)
throws RAException
RAException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||